$OpenBSD: patch-xlife_pattern_c,v 1.2 2015/03/21 21:28:27 naddy Exp $
--- xlife/pattern.c.orig	Thu Jan 22 18:33:14 1998
+++ xlife/pattern.c	Sat Mar 21 02:52:49 2015
@@ -233,8 +233,8 @@ void median(pattern *context, coord_t *px, coord_t *py
 	}
     } 
     if (ctr>0) {
-	heapsort(coordxlist,ctr,1);
-	heapsort(coordylist,ctr,1);
+	lheapsort(coordxlist,ctr,1);
+	lheapsort(coordylist,ctr,1);
 	*px = coordxlist[ctr/2];
 	*py = coordylist[ctr/2];
     }
